package com.example.myowntodo.fet_viewpagerdemo

import android.os.Bundle
import androidx.activity.enableEdgeToEdge
import androidx.appcompat.app.AppCompatActivity
import androidx.core.view.ViewCompat
import androidx.core.view.WindowInsetsCompat
import com.example.myowntodo.R
import com.example.myowntodo.databinding.ActivityFetViewPagerDemoMainBinding
// ref link:
// https://github.com/ravi8x/ViewPager2-Examples/blob/master/app/src/main/java/info/androidhive/viewpager2/views/ViewsSliderActivity.java

class FetViewPagerDemoMainActivity : AppCompatActivity() {
    lateinit var binding:ActivityFetViewPagerDemoMainBinding

    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        enableEdgeToEdge()
        binding = ActivityFetViewPagerDemoMainBinding.inflate(layoutInflater)

        setContentView(binding.root)
        ViewCompat.setOnApplyWindowInsetsListener(findViewById(R.id.main)) { v, insets ->
            val systemBars = insets.getInsets(WindowInsetsCompat.Type.systemBars())
            v.setPadding(systemBars.left, systemBars.top, systemBars.right, systemBars.bottom)
            insets
        }
    }


    private fun init() {
//        TODO:
//        layouts = listOf()
    }

}